package cm.sms.mapper;

import cm.mapper.BaseMapperX;
import cm.sms.DO.SmsChannelDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

/**
 * @author: yxh
 * @Description: 短信渠道
 * @Date: Created in 2022/9/20 13:44
 * @Modified By:
 */
@Mapper
public interface SmsChannelMapper extends BaseMapperX<SmsChannelDO> {

    @Select("SELECT COUNT(*) FROM system_sms_channel WHERE update_time > #{maxUpdateTime}")
    Long selectCountByUpdateTimeGt(Date maxUpdateTime);
}
